package com.bys.system.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(name = "新增用户视图")
@Data
public class CreateUserVo {
    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;

    @Schema(description = "姓名")
    private String name;
    @Schema(description = "手机号")
    private String phone;

    @NotBlank(message = "邮箱号不能为空")
    @Schema(description = "邮箱号")
    private String email;
    @Schema(description = "岗位")
    private Long postId;
    @Schema(description = "部门")
    private List<String> deptId;
    @Schema(description = "所属角色")
    private List<String> ofRole;
}
